{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "edd19fd3",
   "metadata": {},
   "outputs": [],
   "source": [
    "from funcs import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "3323aac4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ts_code</th>\n",
       "      <th>trade_time</th>\n",
       "      <th>open</th>\n",
       "      <th>close</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>vol</th>\n",
       "      <th>amount</th>\n",
       "      <th>oi</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-09-20 15:00:00</td>\n",
       "      <td>75780.0</td>\n",
       "      <td>75750.0</td>\n",
       "      <td>75780.0</td>\n",
       "      <td>75750.0</td>\n",
       "      <td>48.0</td>\n",
       "      <td>18183150.0</td>\n",
       "      <td>46191.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-09-20 14:59:00</td>\n",
       "      <td>75810.0</td>\n",
       "      <td>75780.0</td>\n",
       "      <td>75820.0</td>\n",
       "      <td>75760.0</td>\n",
       "      <td>29.0</td>\n",
       "      <td>10988950.0</td>\n",
       "      <td>46188.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-09-20 14:58:00</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75810.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75800.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>5686000.0</td>\n",
       "      <td>46186.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-09-20 14:57:00</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>379150.0</td>\n",
       "      <td>46180.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-09-20 14:56:00</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>75840.0</td>\n",
       "      <td>75830.0</td>\n",
       "      <td>22.0</td>\n",
       "      <td>8341750.0</td>\n",
       "      <td>46179.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7995</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-08-23 23:32:00</td>\n",
       "      <td>74320.0</td>\n",
       "      <td>74310.0</td>\n",
       "      <td>74320.0</td>\n",
       "      <td>74310.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>743150.0</td>\n",
       "      <td>27992.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7996</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-08-23 23:31:00</td>\n",
       "      <td>74330.0</td>\n",
       "      <td>74320.0</td>\n",
       "      <td>74330.0</td>\n",
       "      <td>74310.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1114750.0</td>\n",
       "      <td>27994.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7997</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-08-23 23:30:00</td>\n",
       "      <td>74360.0</td>\n",
       "      <td>74330.0</td>\n",
       "      <td>74380.0</td>\n",
       "      <td>74330.0</td>\n",
       "      <td>14.0</td>\n",
       "      <td>5205700.0</td>\n",
       "      <td>27993.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7998</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-08-23 23:29:00</td>\n",
       "      <td>74340.0</td>\n",
       "      <td>74360.0</td>\n",
       "      <td>74360.0</td>\n",
       "      <td>74340.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4089300.0</td>\n",
       "      <td>27998.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7999</th>\n",
       "      <td>CU2501.SHF</td>\n",
       "      <td>2024-08-23 23:28:00</td>\n",
       "      <td>74340.0</td>\n",
       "      <td>74340.0</td>\n",
       "      <td>74350.0</td>\n",
       "      <td>74310.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>1115000.0</td>\n",
       "      <td>27995.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>8000 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         ts_code           trade_time     open    close     high      low  \\\n",
       "0     CU2501.SHF  2024-09-20 15:00:00  75780.0  75750.0  75780.0  75750.0   \n",
       "1     CU2501.SHF  2024-09-20 14:59:00  75810.0  75780.0  75820.0  75760.0   \n",
       "2     CU2501.SHF  2024-09-20 14:58:00  75830.0  75810.0  75830.0  75800.0   \n",
       "3     CU2501.SHF  2024-09-20 14:57:00  75830.0  75830.0  75830.0  75830.0   \n",
       "4     CU2501.SHF  2024-09-20 14:56:00  75830.0  75830.0  75840.0  75830.0   \n",
       "...          ...                  ...      ...      ...      ...      ...   \n",
       "7995  CU2501.SHF  2024-08-23 23:32:00  74320.0  74310.0  74320.0  74310.0   \n",
       "7996  CU2501.SHF  2024-08-23 23:31:00  74330.0  74320.0  74330.0  74310.0   \n",
       "7997  CU2501.SHF  2024-08-23 23:30:00  74360.0  74330.0  74380.0  74330.0   \n",
       "7998  CU2501.SHF  2024-08-23 23:29:00  74340.0  74360.0  74360.0  74340.0   \n",
       "7999  CU2501.SHF  2024-08-23 23:28:00  74340.0  74340.0  74350.0  74310.0   \n",
       "\n",
       "       vol      amount       oi  \n",
       "0     48.0  18183150.0  46191.0  \n",
       "1     29.0  10988950.0  46188.0  \n",
       "2     15.0   5686000.0  46186.0  \n",
       "3      1.0    379150.0  46180.0  \n",
       "4     22.0   8341750.0  46179.0  \n",
       "...    ...         ...      ...  \n",
       "7995   2.0    743150.0  27992.0  \n",
       "7996   3.0   1114750.0  27994.0  \n",
       "7997  14.0   5205700.0  27993.0  \n",
       "7998  11.0   4089300.0  27998.0  \n",
       "7999   3.0   1115000.0  27995.0  \n",
       "\n",
       "[8000 rows x 9 columns]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pro.ft_mins(ts_code='CU2501.SHF', freq='1min')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "000ddb82",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
